﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ClrCPlusPlusTestBit;//Clr C++ namespace;
namespace CLRCPlusTestBit
{
    class Program
    {
        static unsafe void Main(string[] args)
        {
            ClrStruct cs = new ClrStruct();//Clr C++ Object;
            byte[] tb = new byte[4] { 255,255,255,255};
            fixed(byte *tbp=tb)
            {
                cs.NativeStructToClrStruct(tbp);
            }
            Console.WriteLine("f1_1={0},f2_7={1},f3_16={2},f4_8={3}", cs.f1_1,
                cs.f2_7,
                cs.f3_16,
                cs.f4_8);
            Console.Read();
        }
    }
}
